package com.linfnn.demo.Service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linfnn.demo.Mapper.DietaryMapper;
import com.linfnn.demo.Model.Dietary;
import com.linfnn.demo.Service.DietaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DietaryServiceImpl extends ServiceImpl<DietaryMapper, Dietary> implements DietaryService {

    @Autowired
    DietaryMapper dietaryMapper;
    @Override
    public Dietary getDietaryByCode(String id) {
        return baseMapper.selectById(id);
    }
    // 这里可以实现其他自定义的业务逻辑


}
